package com.museum.main;

import com.museum.entities.action.ActionResponse;
import com.museum.entities.base.Item;
import com.museum.entities.useritem.UserItem;
import com.museum.utils.Sentor;
import com.museum.utils.Utils;

public class AllCangbao {

	public static void main(String[] args) {
		Sentor s = new Sentor();
		UserItem ml = s.mycwList();
		for (int i = 0; i < ml.getData().getList().size(); i++) {
			Item it = ml.getData().getList().get(i);
			for (int j = 0; j < it.getQuantity(); j++) {
				ActionResponse ar = s.cangbao(it.getItem_id());
				String err = ar.getErr();
				if (!Utils.isBlank(err)) {
					System.out.println(err);
				} else {
					System.out.println(ar.getData().getText());
				}
				try {
					Thread.sleep(2000);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		}
	}

}
